﻿
namespace TinyCms.Core
{
    /// <summary>
    /// 表示事务状态控制
    /// </summary>
    public interface IUnitOfWork
    {
        /// <summary>
        /// 获取当前事务状态
        /// </summary>
        bool Committed { get; }
        /// <summary>
        /// 提交事务
        /// </summary>
        void Commit();
        /// <summary>
        /// 回滚事务
        /// </summary>
        void Rollback();
    }
}
